]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: fix empty user list on user switching
authorRay Strode <rstrode@redhat.com>
Mon, 16 Mar 2015 11:38:04 +0000 (07:38 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 17 Mar 2015 16:22:06 +0000 (12:22 -0400)
There's some vestigial code for hiding the user list
that runs at the same time its parent is hidden.

Only the parent should be hidden, at this point, so
there's situations where the user list hides and
never comes back.

This commit fixes that, by deleting the vestigial code.

https://bugzilla.gnome.org/show_bug.cgi?id=719418

js/gdm/loginDialog.js

index c269cb30cf27d8d4b15c305a66a6e4ba658c873e..6cb8d42b5a70bcd23a28d68a7e2087c3262e35bc 100644 (file)
@@ -1086,18 +1086,11 @@ const LoginDialog = new Lang.Class({
     },
 
     _onUserListActivated: function(activatedItem) {
-        let tasks = [function() {
-                         return GdmUtil.cloneAndFadeOutActor(this._userSelectionBox);
-                     },
-                     function() {
-                         this._setUserListExpanded(false);
-                     }];
-
         this._user = activatedItem.user;
 
         this._updateCancelButton();
 
-        let batch = new Batch.ConcurrentBatch(this, [new Batch.ConsecutiveBatch(this, tasks),
+        let batch = new Batch.ConcurrentBatch(this, [GdmUtil.cloneAndFadeOutActor(this._userSelectionBox),
                                                      this._beginVerificationForItem(activatedItem)]);
         batch.run();
     },